﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Main.master" AutoEventWireup="true"
    CodeBehind="TeachMaterialsManager.aspx.cs" Inherits="TrainingsApp.IPADApp.Master.TeachMaterialsManager" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1" Namespace="DevExpress.Web.ASPxGridView"
    TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .searchTab
        {
            margin-bottom: 10px;
            background-color: #fff;
            border: 2px solid #ccc;
        }
        .searchTab .lab, .searchTab .input
        {
            padding: 8px;
        }
        .searchTab .lab
        {
            padding-left: 20px;
            font-weight: 600;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0" cellspacing="0" border="0" class="searchTab" width="100%">
        <tr>
            <td class="lab">
                学科 :
            </td>
            <td class="input">
                <dx:ASPxComboBox ID="cbxCourse" runat="server" Width="130">
                </dx:ASPxComboBox>
            </td>
            <td class="lab">
                年级 :
            </td>
            <td class="input">
                <dx:ASPxComboBox ID="cbxGrade" runat="server" Width="130">
                </dx:ASPxComboBox>
            </td>
            <td class="lab">
                教材名称 :
            </td>
            <td class="input">
                <dx:ASPxTextBox ID="txtName" runat="server" Width="230" MaxLength="100">
                </dx:ASPxTextBox>
            </td>
            <td class="lab" valign="middle" align="center">
                <dx:ASPxButton ID="btnSearch" runat="server" Width="80" Height="25" Text="筛选">
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
    <dx:ASPxGridView ID="aspDataSource" EnableCallBacks="false" Width="100%" runat="server"
        AutoGenerateColumns="False" KeyFieldName="Idx" OnCustomButtonCallback="aspDataSource_CustomButtonCallback">
        <Columns>
            <dx:GridViewDataTextColumn VisibleIndex="0" FieldName="CourseName" Caption="科目名称">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="0" FieldName="Name" Caption="教材名称">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="0" FieldName="GradeName" Caption="所属年级">
            </dx:GridViewDataTextColumn>
            <dx:GridViewCommandColumn VisibleIndex="7" Caption="操作">
                <CustomButtons>
                    <dx:GridViewCommandColumnCustomButton ID="btnNew" Text="新增">
                    </dx:GridViewCommandColumnCustomButton>
                    <dx:GridViewCommandColumnCustomButton ID="btnEdit" Text="编辑">
                    </dx:GridViewCommandColumnCustomButton>
                    <dx:GridViewCommandColumnCustomButton ID="btnImport" Text="导入">
                    </dx:GridViewCommandColumnCustomButton>
                </CustomButtons>
                <DeleteButton Visible="false">
                </DeleteButton>
            </dx:GridViewCommandColumn>
        </Columns>
        <Settings ShowGroupPanel="false" ShowFilterBar="Hidden" ShowFilterRow="True" />
        <SettingsBehavior ConfirmDelete="true" />
        <SettingsText CommandCancel="取消" CommandClearFilter="清除" CommandDelete="删除" CommandEdit="编辑"
            CommandNew="新增" CommandSelect="选择" CommandUpdate="保存" ConfirmDelete="是否删除所选记录?" />
        <SettingsPager PageSize="20">
        </SettingsPager>
        <Settings ShowFilterRow="False" />
    </dx:ASPxGridView>
</asp:Content>
